package com.zxmr.webclient;

import java.io.IOException;

import com.zxmr.db.DBManager;

public class ComponentInit {

	static DBManager db;
	
	public static void initCommonSqlMapper(String config)
	{
		db = new DBManager();
		try {
			db.init(config);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	public static DBManager getDBManager()
	{
		return db;
	}
}
